﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users
{
    public interface IUserPassCode
    {
        /// <summary>
        /// Inserts the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        bool Insert(UserPassCode item);
        /// <summary>
        /// Updates the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        bool Update(UserPassCode item);
        /// <summary>
        /// Updates the expired date.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        bool UpdateExpiredDate(UserPassCode item);
        /// <summary>
        /// Gets the by user key.
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>return UserEnt if exists, otherwise return null</returns>
        UserPassCode GetByUserKey(string userKey);
    }
}
